package com.eonmind.user;

import com.eonmind.common.contract.exception.handler.GlobalExceptionHandler;
import com.mongoplus.annotation.MongoMapperScan;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

@Slf4j
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = {"com.eonmind.user", "com.eonmind.common"})
@MongoMapperScan("com.eonmind.user.mapper")
@Import(GlobalExceptionHandler.class)
public class UserApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }
}
